<!--
 * Date: 2018年10月23日 13:28:06
 * LastEditors: lvyou
 * LastEditTime: 2019年11月28日 11:47:54
 * FilePath: \youlinweb-master\src\pages\mine\usehelp\usehelp.vue
 * copyright(c) 2019-2025 版权为浙江双城网络科技集团有限公司所有，违者必究。
 -->
<template>
  <div class="touch_action">
    <ylheader :leftsvg='true' :title="'使用帮助'" ></ylheader>
    <pull-to-refresh :disablePulldown="true" :disablePullup="true" class="comment-page">
        <div class="shuoshuo-new" v-if="listnodata">
            <span class="yl-2kong nosvg">
            <span class="path1">
                <span class="path2">
                <span class="path3">
                    <span class="path4">
                    <span class="path5">
                        <span class="path6">
                        <span class="path7">
                            <span class="path8">
                            <span class="path9"></span>
                            </span>
                        </span>
                        </span>
                    </span>
                    </span>
                </span>
                </span>
            </span>
            </span>
            <span class="no-text">还没有相关内容哦~</span>
        </div>
        <ul class="mine_ul" v-else>
            <li class="mine_ul_li" v-for="(items,index) in usehelptitlearrary" :key="index" @click="gohelpdetail(items.id)" :style="{'border-bottom':index==(usehelptitlearrary.length-1)?'none':'1px solid #e6e6e6'}">
                <div class="mine_ul_div">
                    <div class="mine_ul_tlte_fa">
                        <span class="mine_ul_title">{{items.title}}</span>
                    </div>
                    <span class="yl-2r mine_ul_right"></span>
                </div>
            </li>
        </ul>
    </pull-to-refresh>
  </div>
</template>
<script>
import api from "src/api/index";
import ylheader from "src/components/yl-header.vue";
import PullToRefresh from 'src/components/pull-to-refresh'
export default {
    data(){
        return{
            usehelptitlearrary:[],
            listnodata:false,
        }
    },
    components:{
        ylheader,
        api,
        PullToRefresh,
    },
    mounted(){
        this.getusehelplist();
    },
    methods:{
        getusehelplist(){
            api.getusehelplist().then(res=>{
                if(res.success){
                   this.usehelptitlearrary = res.data; 
                   if(this.usehelptitlearrary.length==0){
                        this.listnodata = true;
                   }else{
                        this.listnodata = false;
                   }
                    this.$nextTick(() => {
                        setTimeout(() => {
                            this.$bus.$emit('scrollRefresh');
                        }, 500);
                    });
                }
            })
        },
        gohelpdetail(id){
            this.$router.push({path:'/activityrule',query:{id:id,tag:1}});
        }
    }
}
</script>
<style scoped>

</style>


